﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BestCode.Creds.Entities
{
    public class Template : EntityId
    {
        private string code ;
        private string name ;
        //public FaceEnum Face ;
        private string faceImagePath ;

        private int? attachmentId;

        public virtual string Code
        {
            get { return code; }
            set
            {
                code = value;
                this.FirePropertyChanged("Code");
            }
        }

        public virtual string Name
        {
            get { return name; }
            set
            {
                name = value;
                this.FirePropertyChanged("Name");
            }
        }

        public virtual string FaceImagePath
        {
            get { return faceImagePath; }
            set
            {
                faceImagePath = value;
                this.FirePropertyChanged("FaceImagePath");
            }
        }

        public virtual int? AttachmentId
        {
            get { return attachmentId; }
            set
            {
                attachmentId = value;
                this.FirePropertyChanged("AttachmentId");
            }
        }

        public override string ToString()
        {
            return Code+" - " + Name;
        }
    }
}
